package com.aizhixin.lab.docker.repository;

import com.aizhixin.lab.docker.entity.LastOperation;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface LastOperationRepository extends JpaRepository<LastOperation,String> {
    void deleteByUserId(Long userId);
    void deleteByCourseIdAndUserId(String courseId,Long userId);
    List<LastOperation> findByCourseIdAndUserId(String courseId, Long userId);
}
